﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Small.Html.Options
{
   public class NumberBoxOptions:Validator
   {
       //最小值
       private int min;

       /// <summary>
       /// 最小值 [默认Int.MixValud]
       /// </summary>
       public int Min
       {
           get {


               if (min == 0) 
               {
                   min = Int32.MinValue;
               }
               return min; }
           set { min = value; }
       }
       //最大值
       private long max;

       /// <summary>
       /// 最大值 [默认Long.MaxValue]
       /// </summary>
       public long Max
       {
       
         get {if(max==0)
           {
           max = long.MaxValue;
           }return max; }
           set { max = value; }
       }
       
       private int precision;
    
       /// <summary>
       /// 小数点
       /// </summary>
       public int Precision
       {
           get { return precision; }
           set { precision = value; }
       }
      
       private string groupSeparator;
       
       /// <summary>
       /// 分割符
       /// </summary>
       public string GroupSeparator
       {
           get { return groupSeparator; }
           set { groupSeparator = value; }
       }
       
       private string decimalSeparator;
       
       /// <summary>
       /// 小数点分割符
       /// </summary>
       public string DecimalSeparator
       {
           get { return decimalSeparator; }
           set { decimalSeparator = value; }
       }
       
       private string prefix;
      
       /// <summary>
       /// 前缀
       /// </summary>
       public string Prefix
       {
           get { return prefix; }
           set { prefix = value; }
       }
       
       private string @class;
       
       /// <summary>
       /// 类名
       /// </summary>
       public string Class
       {
           get {

               if (String.IsNullOrEmpty(@class)) 
               {
                   @class = "easyui-numberbox";
               }
               return @class; }
           set { @class = value; }
       }

       

    }
}
